﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace IPrinting
{
    /// <summary>
    /// 接口POST返回信息
    /// </summary>
    public class PrintResponsedEventArgs : EventArgs
    {
        public readonly PrintResponsePackge Packge;
        public PrintResponsedEventArgs(PrintResponsePackge packge)
        {
            this.Packge = packge;
        }
    };

    /// <summary>
    /// 传输超时事件
    /// </summary>
    public class PrintTimeoutEventArgs : EventArgs
    {
        /// <summary>
        /// 设备动作执行超时的信息
        /// </summary>
        public readonly string Message;

        public PrintTimeoutEventArgs(string msg)
        {
            this.Message = msg;
        }
    };

    /// <summary>
    /// 客户端信息包接收事件
    /// </summary>
    public class PrintClientPackageReceivedEventArgs : EventArgs
    {
        /// <summary>
        /// 接收到的信息包
        /// </summary>
        public readonly PrintResponsePackge Package;
        public PrintClientPackageReceivedEventArgs(PrintResponsePackge pack)
        {
            this.Package = pack;
        }
    };
}
